package entity;

import java.io.Serializable;
import java.util.List;

/**
 * @描述
 * @创建人 wangyue
 * @创建时间2020/11/1210:25
 */
public class PageResult<T> implements Serializable {

    private long total;//总记录数

    private List<T> rows;//当前页结果

    public PageResult() {
    }

    public PageResult(long total, List rows) {
        super();
        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
